<?php
/**
 * Created by PhpStorm.
 * User: yys
 * Date: 2016/11/19
 * Time: 17:50
 * 品牌控制器
 */

namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;
class BrandBackRoute
{
    public function map(Registrar $router)
    {
        $router->group(['middleware' =>[ 'web','auth','permissions.check'],
            'namespace'=>'Backstage', 'prefix' =>'backstage/brand/',], function ($router) {
            $router->get('add-brand', [ 'uses' => 'BrandController@getAddBrand'])->name('get.brand.add-brand');
            $router->get('brand-list', [ 'uses' => 'BrandController@getBrandList'])->name('get.brand.brand-list');
            $router->get('update-brand', [ 'uses' => 'BrandController@getUpdateBrand'])->name('get.brand.brand-list.update-brand');
            $router->post('search-brand', [ 'uses' => 'BrandController@postSearchBrandList'])->name('post.brand.brand-list.search-brand');
            $router->post('delete-brand', [ 'uses' => 'BrandController@postDeleteBrand'])->name('post.brand.brand-list.delete-brand');
            $router->post('update-brand', [ 'uses' => 'BrandController@postUpdateBrand'])->name('post.brand.brand-list.update-brand');
            $router->post('add-brand', [ 'uses' => 'BrandController@postAddBrand'])->name('post.brand.add-brand.add-brand');
            $router->post('get-brand-simple-list', [ 'uses' => 'BrandController@getBrandSimpleList'])->name('post.brand.brand-list.get-brand-simple-list');
        });
    }
}